package org.aphelie.torg.ruler.internal.core;

import org.aphelie.torg.ruler.core.IModelChangedListener;

/**
 * This filter is to be used when listeners are copied from
 * model to model. It allows some listeners to be skipped in
 * the process.
 */
public interface IModelChangedListenerFilter {
    /**
     * Tests if the listener should be accepted.
     * @param listener the listener to test
     * @return <code>true</code> if the listener should pass
     * the filter, <code>false</code> otherwise.
     */
    public boolean accept(IModelChangedListener listener);

}
